import BigFun from './bigfun.js';
import Pcr from './origin.js';

const Character = {
  getCharacterList: async () => {
    let b = await BigFun.getCharacterList();
    let p = await Pcr.getCharacterList();
    for (const i in p) {
      for (const j in b) {
        if (p[i].id === b[j].id) {
          b.splice(Number.parseInt(j), 1);
          break;
        }
      }
    }
    p.concat(b);
    return p;
  }
}

export default Character;
